import { Empty, Image } from 'antd';
import unauthorizedImageData from '../data/unauthorizedImageData';

const Unauthorized: React.FC = () => {
  return (
    <Empty
      image={
        <Image
          alt="unauthorized"
          src={unauthorizedImageData}
          preview={false}
          style={{
            width: 160,
            height: 160
          }}
        />
      }
      description="未授权，暂时无法使用系统"
      className="auto-height"
      style={{
        color: 'rgba(0, 0, 0, 0.3)',
        marginTop: 64
      }}
    />
  );
};

export default Unauthorized;
